package com.example.sellersale.server;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.sellersale.entity.CartInfo;
import com.example.sellersale.entity.Order;
import com.example.sellersale.mapper.OrderMapper;
import org.springframework.stereotype.Service;

import java.util.List;


public interface OrderService extends IService<Order> {
    //所有用户订单信息
     List<Order> allUserOrder();
     //用户个人订单信息
     List<Order> selectOneOrder(String uId);
     //修改订单状态
     boolean updateOrderStatus(String oId,String gId,String status);

     //添加订单功能
    Boolean addOrders(List<CartInfo> cart);

    //返回指定时间内的订单信息
    List<Order> speciallyTimeOrder(String time);
}
